package com.wanmait.demo.pojo;

import java.io.Serializable;

public class Component implements Serializable {

    //zjj
    private ComponentUse componentUse;




    private Integer id;

    /**
	* 价格
	*/
    private Integer price;
    /**
	* 零件名
	*/
    private String componentName;
    /*图片*/
    private String pic;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getComponentName() {
        return componentName;
    }

    public void setComponentName(String componentName) {
        this.componentName = componentName;
    }

    public ComponentUse getComponentUse() {
        return componentUse;
    }

    public void setComponentUse(ComponentUse componentUse) {
        this.componentUse = componentUse;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", price=").append(price);
        sb.append(", pic=").append(pic);
        sb.append(", componentName=").append(componentName);
        sb.append(", pic=").append(pic);
        sb.append("]");
        return sb.toString();
    }
}